#include "File.h"

vector<state> File::ReadState(char *fileName)
{
	vector<state> states;
	ifstream file;
	file.open(fileName);
	uint_t i,j,r,p,q;
	string line;
	file >>i;
	cout<<"Ilosc lini: "<<i<<endl;
	file >>j;
	cout<<"Ilosc kolumn: "<<j<<endl;
	for(uint_t iter=0;iter<i;iter++)
	{
		file>>r;
		file>>p;
		file>>q;
		state state(iter+1,r,p,q);
		states.push_back(state);
	}
	return states;

}
File::File(void)
{
}


File::~File(void)
{
}
